#!/usr/bin/node

const log = console.log,
      fs = require('fs');
 let  dir = process.argv[2];
if(dir==null){
  dir = '.';
}
try{
  log(fs.readdirSync(dir));
}catch(e){
  log(e.message);
}
